import { createApp } from 'vue'
import './style.css'
import "amfe-flexible"
import ElementPlus from "element-plus";
import router from "./router/index"
import locale from "element-plus/es/locale/lang/zh-cn";
import VuePlyr from 'vue-plyr';
import 'vue-plyr/dist/vue-plyr.css'; // 导入 Plyr 的样式
import App from './App.vue'
const app = createApp(App)
app.use(VuePlyr, {
    plyr: {
        autoplay: true,
        controls: ['play', 'progress', 'current-time', 'mute', 'volume', 'fullscreen'], // 自定义控件
        muted: true,
        loop: { active: true }, // 循环播放
        preload: 'auto',
    } // 这里可以添加 Plyr 的全局配置，例如 { autoplay: true }
})
app.use(ElementPlus,{locale});
app.use(router)
app.mount('#app')
